package com.aggregate.pay.swiftpass.support.client;

import com.aggregate.pay.swiftpass.bean.PayQueryData;
import com.aggregate.pay.swiftpass.bean.PayQueryResult;
import com.aggregate.pay.swiftpass.support.AbstractClient;
import com.aggregate.pay.swiftpass.support.Merch;

/**
 * 查询订单API
 * @author Moyq5
 * @date 2019年2月19日
 */
public class PayQuery extends AbstractClient<PayQueryData, PayQueryResult> {

	public PayQuery(Merch merch) {
		super(merch);
	}

	@Override
	protected Class<PayQueryResult> getResultClass() {
		return PayQueryResult.class;
	}

	@Override
	public PayQueryResult execute(PayQueryData data) {
		data.setService("unified.trade.query");
		return super.execute(data);
	}

}
